3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and manipulate matrix transforms.
You can use the Q3MatrixTransform_New function to create a new matrix transform.
TQ3TransformObject Q3MatrixTransform_New (
const TQ3Matrix4x4 *matrix);
The Q3MatrixTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeMatrix using the data passed in the matrix parameter. The data you pass in the matrix parameter is copied into internal QuickDraw 3D data structures. If QuickDraw 3D cannot allocate memory for those structures, Q3MatrixTransform_New returns the value NULL .
It is your responsibility to ensure that the matrix specified by the matrix parameter is affine and invertible. QuickDraw 3D does not check for these qualities.
You can use the Q3MatrixTransform_Submit function to submit a matrix transform without creating an object or allocating memory.
TQ3Status Q3MatrixTransform_Submit (
const TQ3Matrix4x4 *matrix,
TQ3ViewObject view);
You can use the Q3MatrixTransform_Get function to query the private data stored in a matrix transform.
TQ3Status Q3MatrixTransform_Get (
TQ3TransformObject transform,
TQ3Matrix4x4 *matrix);
You can use the Q3MatrixTransform_Set function to set new private data for a matrix transform.
TQ3Status Q3MatrixTransform_Set (
TQ3TransformObject transform,
const TQ3Matrix4x4 *matrix);
Previous | QD3D Book | Overview | Chapter Contents | Next |